package com.Brave.manager.Demo01;

import java.io.*;

public class Demo04 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fo = new FileOutputStream("D:\\JAVA\\html\\a.txt");
        FileInputStream fs = new FileInputStream("D:\\JAVA\\s.txt");

        int by = -1;
        while ((by = fs.read()) != -1) {
            fo.write(by);
        }
        fo.close();
        fs.close();
    }
}
